package com.yuyou.train.admin.service;

import java.util.List;

import com.yuyou.train.admin.vo.req.ReqAuthUserAdd;
import com.yuyou.train.admin.vo.req.ReqAuthUserUpdate;
import com.yuyou.train.service.api.admin.dto.AuthUserDTO;
import com.yuyou.train.service.api.admin.entity.AuthUser;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

/**
 * Created by yujin.liu on 2018/1/19.
 */
public interface IAuthUserService {

    AuthUserDTO findAuthUser(String id);
    
    AuthUser selectBaseByPrimaryKey(String id);

    ResBoolSimpleInfo insertAuthUser(ReqAuthUserAdd authUserAdd);

    ResBoolSimpleInfo updateAuthUser(ReqAuthUserUpdate authUserUpdate);

    int updateByPrimaryKeySelective(AuthUser authUser);

    int deleteAuthUserById(String id);

    int findAuthUserPageCount(Pagination<AuthUserDTO> p);

    List<AuthUserDTO> findAuthUserPageList(Pagination<AuthUserDTO> p);
    
    AuthUser seleteAuthUserByAccount(String account);
    
}
